package com.lanou3g.code0409.common;

/**
 * Created by dllo on 18/4/9.
 */
public class TestChar {
    public static void main(String[] args) {
        char a = 'A';
        int a1 = 65;
        char b = (char) 65; // 把65强制类型转换成char
        int b1 = (int) 'A';
        System.out.println(a);
        System.out.println(a1);
        System.out.println(b);
        System.out.println(b1);

        for (int i = 65; i < 65 + 26; i++) {
            char c = (char) i;
            System.out.print(c);
        }

        char d = 'D'; // 68
        char e = 'E'; // 69
        System.out.println(d > e);

        char f = (char) (e + 1);
        System.out.println(f);


        for (char g = 'A'; g <= 'Z'; g++) {
            System.out.println(g);
        }
    }
}
